The following instructions refer to the replication of the paper “Norms of Democracy, Staged Democrats, and Supply of Exclusionary Ideology”. The paper relies on data from Vox and Voto surveys, the use of which is subject to a contract requesting the deletion of data after their analysis. Since the paper does not use the original, individual-level data, and the contract makes no mention of aggregate-level data, we emailed with the data repository to ask if we could publish the aggregate-level data that are used in the analyses. Their answer was that this would not be possible. For this reason, the dataset used in the paper cannot be uploaded. In this file, I explain how I created the dataset and the files that I am submitting to the Dataverse.

After downloading the survey data, I had research assistants calculate the share of respondents who said they voted yes and the share of respondents who said they voted no, for each of the referendums used in the analyses, which are listed in the Appendix of the paper. These data were then merged with the official data on referendum results, so that in each line I knew the official vote for yes, the official vote for no, and the share of respondents who declared to have voted yes, and the share of respondents who declared to have voted no. Then, I asked the research assistants to code the official position of all parties that are included in the Comparative Manifesto Project.

To calculate the electoral surplus for each party's position in the referendum, I coded the difference between the official and declared support for the position that that party had in it. If a party supported a yes vote, I calculated the difference between the official vote for yes in that referendum and the declared support for yes in the survey that corresponds to that referendum. If a party supported a no vote, I calculated the difference between the official vote for no in that referendum and the declared support for no in the survey that corresponds to that referendum. 

Despite being unable to provide the original data, I have uploaded the code and a log file with all analyses. The analyses were run using Stata 17, and the plots were drawn using RStudio 2021.09.2.For this reason, I include both a Stata do-file and log (with all the main analyses) and an R script with the code to all plots in the paper. 

The version of the analyses that is included in the published version of the paper was last run in July 2024. In the case of the analyses with bootstrapped standard errors, I used the seed 2408.

